package com.example.dubbo002.controller;

import com.example.dubbo001.service.ProviderService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DubboTestController {
    @DubboReference
    ProviderService providerService;

    @RequestMapping("/dubbo")
    public String get(){
      return providerService.SayHello("w");
    }
}
